$(function (){
    $(".button").click(function (){
        console.log("111");
        let  id = $("input[name='id']").val();
        let username  = $("input[name='username']").val();
        console.log(username)
        let password  = $("input[name='password']").val();
        console.log(password)
        let name  = $("input[name='name']").val();
        let sex  = $("input[name='sex']").val();
        $.ajax({
            url:"/dc/ac",
            // dataType:"text",
            data:{id:id,userName:username,passWord:password,name:name,sex:sex},
            type:"post",
            success:function (resDate){
               alert("插入成功请返回一览页面");
            }

        });

    })


});